import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { routing } from './pages-routing.module';
import { PagesComponent } from './pages.component';
import { SwiperComponent } from './swiper/swiper.component';
import { TestpagesComponent } from './testpages/testpages.component';
import { UploadComponent } from './upload/upload.component';
import { SwiperModule } from 'ngx-swiper-wrapper';
import { SWIPER_CONFIG } from 'ngx-swiper-wrapper';
import { SwiperConfigInterface } from 'ngx-swiper-wrapper';
const DEFAULT_SWIPER_CONFIG: SwiperConfigInterface = {
  direction: 'horizontal',
  slidesPerView: 'auto'
};
const COMPONENT = [
  PagesComponent,
  SwiperComponent,
  TestpagesComponent,
  UploadComponent
];
const COMPONENT_NOROUNT = [];
@NgModule({
  imports: [CommonModule, ReactiveFormsModule, FormsModule, routing, NgZorroAntdModule.forRoot(),SwiperModule],
  providers: [{
    provide: SWIPER_CONFIG,
    useValue: DEFAULT_SWIPER_CONFIG
  }],
  declarations: [...COMPONENT, ...COMPONENT_NOROUNT],
  entryComponents: COMPONENT_NOROUNT,
})
export class PagesModule { }